<?php
/**
 * Submit form element
 *
 * @category    IPB_CMS
 * @package     App_Form
 * @subpackage  Element
 * @copyright   Copyright (c) 2009 IPB CMS <http://ipb-cms.googlecode.com/>
 * @license     http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License
 * @author      Henrique Moody <henriquemoody@gmail.com>
 */
class App_Form_Element_Submit extends Zend_Form_Element_Submit
{

    /**
     * Default decorators
     *
     * Do not displays the 'DtDdWrapper' decorator by default.
     *
     * @return void
     */
    public function loadDefaultDecorators()
    {
        if ($this->loadDefaultDecoratorsIsDisabled()) {
            return;
        }
        $decorators = $this->getDecorators();
        if (empty($decorators)) {
            $this->addDecorator('Tooltip')
                 ->addDecorator('ViewHelper')
                 ->addDecorator('HtmlTag', array(
                     'tag' => 'dd',
                     'id' => $this->getId() . '-element'
                 ));
        }
    }

}
